import crissyService from "..";
import serverConfig from "../config";

export const toConcernAPI = (id) => {
    return crissyService({
        method: "get",
        url: `/concern/toConcern/${id}`,
        baseURL: serverConfig.concernServer,
    })
};

export const getConcernsAPI = (id) => {
    return crissyService({
        method: "get",
        url: '/concern/targetUsers',
        data: id,
        baseURL: serverConfig.concernServer,
    })
};

export const getFunsAPI = (id) => {
    return crissyService({
        method: "get",
        url: '/concern/getFuns',
        data: id,
        baseURL: serverConfig.concernServer,
    })
};

export const toFollowAPI = (data) => {
    return crissyService({
        method: "post",
        url: `/relation/follow`,
        baseURL: serverConfig.concernServer,
        data,
        headers: { "Content-Type": "application/json" }
    })
};

export const tocancelFollowAPI = (data) => {
    return crissyService({
        method: "post",
        url: `/relation/cancelFollow`,
        baseURL: serverConfig.concernServer,
        data,
        headers: { "Content-Type": "application/json" }
    })
};